//
//  ProjectConfig.h
//  QinjinProject
//
//  Created by Michael on 14-9-12.
//  Copyright (c) 2014年 ___Michael___. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HttpClient.h"
#import <MapKit/MapKit.h>
#import <StoreKit/StoreKit.h>

#define USERPROFILE_FILENAME  @"user_profile"
#define LOCALDATA_FILENAME    @"localdata"
//#define CITY_FILENAME         @"city"
#define dataversion_FILENAME  @"dataversion"
//userdickey
#define USER_token           @"token"
#define USER_tel             @"tel"
#define USER_isProfile       @"isProfile"
#define USER_id              @"id"

@interface ProjectConfig : NSObject <UIAlertViewDelegate,LoginViewControllerDelegate>


//当前用户数据
@property(nonatomic,strong)NSMutableDictionary * dicUserData;
@property(nonatomic,strong)NSMutableArray * arrCity;//城市/省/市
@property(nonatomic,strong)NSMutableDictionary * dicAcademicTitle;//学术职称
@property(nonatomic,strong)NSMutableDictionary * dicClinicalTitle;//社会职称
@property(nonatomic,strong)NSMutableDictionary * dicGender;//性别
@property(nonatomic,strong)NSMutableDictionary * dicBookingTravelType;//邀请医生过来
@property(nonatomic,strong)NSMutableDictionary * dicAllUrl;//所有的Url


//@property(nonatomic,strong)NSMutableDictionary * dicPaymentUrl;//支付URL
-(void)loadData;

-(void)readFromUserDataFile;

-(BOOL)needLogin;

-(NSString*)dataFilePath:(NSString*)fileName;

-(void)writeToFile:(NSString *)path writeData:(NSMutableDictionary *)data;

-(BOOL)isLogin;

-(BOOL)userIsEffective;

-(void)requestCityData;

-(void)requestLocalData:(NSString *)strUrl;

@end
